package com.subaiwang.pojo;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Header {
    private long id;
    private String name;
    private String title;
    private String namelink;
    private String images;
    private String href;
    private String idValue;
    private String classValue;

    @Id
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "title")
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Basic
    @Column(name = "namelink")
    public String getNamelink() {
        return namelink;
    }

    public void setNamelink(String namelink) {
        this.namelink = namelink;
    }

    @Basic
    @Column(name = "images")
    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    @Basic
    @Column(name = "href")
    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    @Basic
    @Column(name = "idValue")
    public String getIdValue() {
        return idValue;
    }

    public void setIdValue(String idValue) {
        this.idValue = idValue;
    }

    @Basic
    @Column(name = "classValue")
    public String getClassValue() {
        return classValue;
    }

    public void setClassValue(String classValue) {
        this.classValue = classValue;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Header header = (Header) o;

        if (id != header.id) return false;
        if (name != null ? !name.equals(header.name) : header.name != null) return false;
        if (title != null ? !title.equals(header.title) : header.title != null) return false;
        if (namelink != null ? !namelink.equals(header.namelink) : header.namelink != null) return false;
        if (images != null ? !images.equals(header.images) : header.images != null) return false;
        if (href != null ? !href.equals(header.href) : header.href != null) return false;
        if (idValue != null ? !idValue.equals(header.idValue) : header.idValue != null) return false;
        if (classValue != null ? !classValue.equals(header.classValue) : header.classValue != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (id ^ (id >>> 32));
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (title != null ? title.hashCode() : 0);
        result = 31 * result + (namelink != null ? namelink.hashCode() : 0);
        result = 31 * result + (images != null ? images.hashCode() : 0);
        result = 31 * result + (href != null ? href.hashCode() : 0);
        result = 31 * result + (idValue != null ? idValue.hashCode() : 0);
        result = 31 * result + (classValue != null ? classValue.hashCode() : 0);
        return result;
    }
}
